<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Dropmenus extends CI_Controller {
	var $plugin_name = 'ozh-admin-drop-down-menu';

	function __construct(){
	  parent::__construct();
	  // 将插件目录加入到CI查找路径中
	  $this->load->add_package_path(PLUGIN_PATH.$this->plugin_name);
	  
	  $this->load->helper('a');
	  $this->load->helper('ozh_wp');
	  $this->load->library('B');
	  Doctrine::loadModels(PLUGIN_PATH.$this->plugin_name.'/models/');
	}
	
	public function index(){
		$this->output->append_output('drop menu setting goodbye');
	}
	public function options(){
		$params = array('hi'=>wp('BBBBBBBBBBB'),'hello'=>$this->b->hello());
		$this->load->view('options',$params,false,$this->plugin_name);
		$this->output->append_output('drop menu setting goodbye');
	}
	
	public function setting(){
		$params = array('hi'=>wp('BBBBBBBBBBB'),'hello'=>$this->b->hello());
		$this->load->view('settings',$params,false,$this->plugin_name);
		$user = new User();
		$user->username = 'test';
		//$user->save();
	}
}

/* End of file */
/* Location: ./application/controllers/ */